package com.example.demo.config;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.example.demo.bean.RedisConInfo;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableApolloConfig(value = {"redis"},order = 3)
public class RedisConfig {

    @Bean
    @RefreshScope
    public RedisConInfo redisConInfo(){
        return new RedisConInfo();
    }
}
